package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingLevelDto;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    List<NursingLevelVo> getAll();

    void addLevel(NursingLevel nursingLevel);

    NursingLevelVo getById(Integer id);

    Page<NursingLevelVo> pagequery(String name, Integer status);

    void updateLevel(NursingLevel nursingLevelDto);

    void deleteById(Integer id);

    void setStatus(@Param("id")Integer id,@Param("status") Integer status);
}
